Why would a sword even need to be in existence when there was no "evil" yet at that point?
Unless:
A - God never planned for perfect mankind to dwell in peace on a paradise earth
B - God already knew what was comin'
C - God didn't create us perfect
D - The bible is a complete crock of crap
E - All of the above